var liObjs =document.getElementsByTagName('li');
var curObj;
for(var i=0; i<liObjs.length; i++)
{
	(function(obj)
		{
		try{obj.children[0].hideFocus = "true";}catch(err){}
		obj.onmouseover = function(){obj.className="left_2";}
		obj.onmouseout = function(){if(curObj!=obj){obj.className="";}}
		obj.onclick = function(){clickMenuObj(obj);}
		}
	)(liObjs[i]);
}
var leftHead=$('.channel');
leftHead.click(function(){
    $('.channel_ul').slideUp();
    $(this).next('.channel_ul').slideDown();
});


function clickMenuObj(obj){
	if(curObj){
		curObj.className="";
	}
	obj.className="left_2";
	curObj=obj;
	if(curObj){
		E("position").innerHTML = "菜单 » "+curObj.children[0].innerHTML;
	}
}


function reinitIframe(){
	var bodyobj=(document.documentElement) ? document.documentElement : document.body;
	var height=bodyobj.clientHeight-100;
	var iframe1 = document.getElementById("mainifm");
	try{
		iframe1.style.height =  height+"px";
	}catch (ex){
	}
}
if(checkBrowser()==1){
	window.setInterval(reinitIframe, 500);
}